//
//  LRTopBar.h
//  Anyair
//
//  Created by karlcool on 14-5-12.
//  Copyright (c) 2014年 Karlcool. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TopBarDelegate <NSObject>

- (void)clickLeft:(UIButton*)sender;
- (void)clickRight:(UIButton*)sender;
@end


@interface LRTopBar : UIView {
    UIImage *rightImage;
    UIImage *leftImage;
    NSString *center;
    NSString *rightStr;
    NSString *leftStr;
    
    
    UILabel *titleLabel;
}

@property (nonatomic,weak) id<TopBarDelegate> delegete;

@property (nonatomic,strong) UIButton *leftBtn;
@property (nonatomic,strong) UIButton *rightBtn;

- (id)initWithTitle:(NSString*)titleStr AndLeft:(UIImage*)left AndRight:(UIImage*)right;
- (id)initWithTitle:(NSString*)titleStr AndLeftText:(NSString*)left AndRightText:(NSString*)right;

@end
